package factory.factory_method;

public class Test {
    public static void main(String[] args) {
        CoffeStore coffeStore = new CoffeStore();

        //CoffeeFactory factory = new AmeCoffeeFactory();
        CoffeeFactory factory = new LetteCoffeeFactory();
        coffeStore.setFactory(factory);

        Coffee coffee = coffeStore.orderCoffee();
        System.out.println(coffee.getName());
    }
}
